// ie polyfill
import '@babel/polyfill'
import './assets/less/common.less'
import Vue from 'vue'
import router from './router'
import store from './store/'
import App from './App.vue'
// mock
//import './mock'
import bootstrap from './core/bootstrap'
//全局过滤器
import './utils/filter'
import './components/global.less'
import i18n from './locales'
import './core/use'
import VueAMap from 'vue-amap'
/* eslint-disable */

Vue.use(VueAMap)
VueAMap.initAMapApiLoader({
  key: '3257d590bb917ee18e4242e9b086da37',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType','AMap.Geocoder', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4',
  uiVersion: '1.0.11'
});
new Vue({
  router,
  store,
  i18n,
  created: bootstrap,
  render: h => h(App),
  mounted () {
    // 初始化数据字典
    store.dispatch('InitDict')
  }
}).$mount('#app')
